#include<stdio.h>

int main(int argc,char *argv[])
{
	char ch = 0;

	if(argc!=3){
		printf("Usage:%s srcpath destpath\n",argv[0]);

	}

	FILE *fpr = fopen(argv[1],"r");
	if(!fpr){
		perror("fopen");
		return -1;
	}

	FILE *fpw = fopen(argv[2],"w");
	if(!fpw){
		perror("fopen");
		return -1;
	}
	//ch = fgetc(fp);
/*	while(1){
		//printf("%c",ch);
		ch = fgetc(fp);
		if(ch == EOF)
			break;
		printf("%c",ch);


	}
*/

	//cong src zhong read a character write dest zhong  zhi dao wen jian mo wei
	while((ch=fgetc(fpr))!=EOF)
		fputc(ch,fpw);

	fclose(fpr);
	fclose(fpw);
	return 0;


}